{% extends 'base.html' %}

{% block title %}
    某课程学生列表
{% endblock %}

{% block content %}
    <div class="main">
        <div class="row">
            {% for student in students %}
            <div class="col-md-2">
                <div class="card mb-2">
                    <img src="{{ MEDIA_URL }}{{ student.css_image }}" alt="头像" class="bd-placeholder-img card-img-top" width="100%" height="150">
                    <div class="card-body" style="padding: 10px">
                        <p class="card-text">学号：{{ student.css_id }}</p>
                        <p class="card-text">姓名：{{ student.css_name }}</p>
                        <p class="card-text">分数：</p>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-outline-danger" onclick="javascript:window.location.href=''">删除</button>
                        <button type="button" class="btn btn-outline-primary" onclick="javascript:window.location.href=''">修改</button>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}